import './ModalTableHTime.css'
import React, { useState } from 'react';
import { Modal, Button } from 'antd'
import { Link } from 'react-router-dom';


const ModalTableHTime = (props) => {
    // console.log('获取',props);
    
    // console.log(props.content.modifyTime);

    // 性格，学校专业，工作年限，做过什么项目用什么技术，获得哪些技术的奖项。
    // 时间 1分钟,内容:项目名称,项目背景:业务了解情况,项目面向群体,完成情况,做了多久,多大,技术,你做可什么模块用了什么技术,
    const T=props.content.modifyTime||""

    // console.log(T.split(' ')[0]);

    const onChange = e => {
        console.log(e);
    };

    // 编辑
    const [isModalVisible3, setIsModalVisible3] = useState(false);

    const showModal3 = () => {
        setIsModalVisible3(true);
    };

    const handleOk3 = () => {
        setIsModalVisible3(false);
    };

    const handleCancel3 = () => {
        setIsModalVisible3(false);
    };
    // 模态框title
    const CustomTitle3 = () => {
        return (
            <div className='CustomTitle_title'>
                操作记录
            </div>
        )
    }
    return (
        <div>
            <a onClick={showModal3}>操作记录</a>
            <Modal cancelText='取消' okText='确认' width="715px" title={<CustomTitle3></CustomTitle3>} visible={isModalVisible3} onOk={handleOk3} onCancel={handleCancel3}
                footer={[
                    <Button id="ModalseeS2Btn1" key="back" onClick={handleCancel3}>取消</Button>,
                    <Button id="ModalseeS2Btn2" key="submit" type="primary" onClick={handleOk3}>
                        确认
                    </Button>,]}>
                <div className="ModalTableHTime">
                    <div className="ModalTableHTime_c">
                        <div>
                            <p>{T.split(' ')[0]}</p>
                            <p>{T.split(' ')[1]}</p>
                        </div>
                        <div>
                            admin
                        </div>
                        <div>修改数据</div>
                    </div>
                    <div  className="ModalTableHTime_s"></div>
                    <div className="ModalTableHTime_c">
                        <div>
                            <p>{T.split(' ')[0]}</p>
                            <p>{T.split(' ')[1]}</p>
                        </div>
                        <div>
                            admin
                        </div>
                        <div>修改数据</div>
                    </div>
                    <div  className="ModalTableHTime_s"></div>
                    <div className="ModalTableHTime_c">
                        <div>
                            <p>{T.split(' ')[0]}</p>
                            <p>{T.split(' ')[1]}</p>
                        </div>
                        <div>
                            admin
                        </div>
                        <div>修改数据</div>
                    </div>
                </div>
            </Modal>
        </div>
    )

}
export default ModalTableHTime